﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agr.CQRS.Infrastructure.Orm;
using NHibernate.Criterion;

namespace Agr.CQRS.Infrastructure.Events
{
    class QueryGetPointer : CriteriaQuery<DomainEventPointer>
    {
        public QueryGetPointer ForPoller(string name)
        {
            Criteria.Add(Expression.Eq("PollerName", name));
            return this;
        }
    }
}
